package org.fatewa.engine.magic.db.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @author fatewa
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class Table extends Remarkable {
    private List<Column> columns;

    public Table column(Column col) {
        if (null == columns) {
            columns = new ArrayList<>();
        }
        columns.add(col);
        return this;
    }
}
